/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
zm.ready(function() {
    raiseSortEvent();

});


function raiseSortEvent(){
    /////home sort///
    zm(".view-header-new").unbindAll();
    zm(".view-header-new").bind("click", function() {
        ajaxSortNewHome("VIEW");
    });
     zm(".res-header-new").unbindAll();
    zm(".res-header-new").bind("click", function() {
        ajaxSortNewHome("RES");
    });
    zm(".view-header-hot").unbindAll();
      zm(".view-header-hot").bind("click", function() {
        ajaxSortHotHome("VIEW");
    });
  zm(".res-header-hot").unbindAll();
    zm(".res-header-hot").bind("click", function() {
        ajaxSortHotHome("RES");
    });
}